package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface HazardService {

	public Hazard saveHazard(Hazard hazard);

	public Set<Hazard> loadHazards();

	public Set<Hazard> loadReferenceHazards(Set<Hazard> hazards);

	public Set<Hazard> loadHazardsByIdSet(Set<Integer> hazardsId);

	public Map<String, ?> loadHazardObjectReferencedSet(Hazard hazard);

	public Map<String, ?> loadHazardClassReferencedSet(Hazard hazard);

	public void deleteHazard(Hazard hazard);

	public void deleteHazards(Set<Integer> deleteHazardsId);

	public List<Hazard> findAllHazards(Integer startResult, Integer maxRows);

	public Hazard findHazardByPrimaryKey(Integer id);

	public Integer countHazards();

	public Integer countHazards(CmiPagination page);

	public Integer countHazardsByName(String queryName);

	public Integer countHazardsByDetachedCriteria(CmiPagination page);

}
